<?php
    session_start();
    session_cache_expire(30);
/*
 * Run all the RMH Homebase unit tests
 */
require_once(dirname(__FILE__).'/simpletest/web_tester.php');
require_once(dirname(__FILE__).'/simpletest/autorun.php');
class AllTests extends TestSuite {
 	  function AllTests() {  	
 	  	$_SESSION['logged_in']=1;
		$_SESSION['access_level'] = 2;
		$_SESSION['f_name']='All';
		$_SESSION['l_name']='Tests';
		$_SESSION['_id']='All Tests';	
//		parent::TestSuite('');
        $this->addFile(dirname(__FILE__).'/testPerson.php');
        $this->addFile(dirname(__FILE__).'/testShift.php');
        $this->addFile(dirname(__FILE__).'/testSCL.php');
        $this->addFile(dirname(__FILE__).'/testRMHdate.php');
        $this->addFile(dirname(__FILE__).'/testdbSCL.php');
        $this->addFile(dirname(__FILE__).'/testdbPersons.php');
        $this->addFile(dirname(__FILE__).'/testdbSchedules.php');
        $this->addFile(dirname(__FILE__).'/testdbSchedules_New.php');
//        $this->addFile(dirname(__FILE__).'/testlogin_form.php');
//        $this->addFile(dirname(__FILE__).'/tesindex.php');
        $this->addFile(dirname(__FILE__).'/testWeek.php');

	    $this->addFile(dirname(__FILE__).'/testdbShifts.php');
        $this->addFile(dirname(__FILE__).'/testdbDates.php');
//        $this->addFile(dirname(__FILE__).'/testsubCallList.php');
        $this->addFile(dirname(__FILE__).'/testdbWeeks.php');
//        $this->addFile(dirname(__FILE__).'/testeditShift.php');
//        $this->addFile(dirname(__FILE__).'/testcalendar.php');
        
        $this->addFile(dirname(__FILE__).'/testloginout.php');
        $this->addFile(dirname(__FILE__).'/testeditMasterSchedule.php');
        $this->addFile(dirname(__FILE__).'/testaddWeek.php');
        $this->addFile(dirname(__FILE__).'/testviewPeople.php');



        echo ("All tests complete");
 	  }
 }
?>
